package com.gbk.clickhouseservicestruct.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.myweb.ck.mapping.ChTable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * @Project: nats3.0_eva
 * @Package: com.les.its.ds.model
 * @Author： mujian
 * @Create： 2024/10/10 16:59
 * @Description： TODO
 * @History: modify
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ChTable(name = "tig.T_STO_KEYEVENT")
public class STO_KEYEVENT {

    private Integer areaNo;
    private Integer juncNo;
    private Integer subJuncNo;

    @Temporal(TemporalType.TIMESTAMP)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date occTime;

    private Integer eventType;
    private Integer eventType2;
    private String detailInfo;
    private Integer phaseNo;
    private Integer dirNo;
    private Integer detailType;

}
